<html>
<head>
<style type='text/css'>
body {
   background-color: white;
   margin: 1em 2em 1em 2em;
   font-family: Sans-Serif;
   color: #002;
   line-height: 140%;
   font-size: 12px;
}

h4 {
    font-size: 100%;
    font-style: normal;
    font-weight: bold;
}

h5 {
    font-size: 100%;
    font-style: italic;
    font-weight: normal;
}

pre {
   background-color: #eee;
   padding: 0.5em 0.5em 0.5em 2em;
}

@media print {
   pre {word-wrap:break-word; width:100%;}
} 

ul li,
ol li {
   padding-left: 0.3em;
   /*text-indent: -2em;*/
   margin-bottom: 0.5em;
}

em {
   font-style: normal;
   font-weight: bold;
   text-decoration: underline;
   color: #c40;
}

code {
   font-family: Monospace;
   font-size: 100%;
   color: #c40;
}

a, a * {
   text-decoration: underline;
   color: blue;
   /* border: 0.5px solid #aaa;
   white-space: nowrap;
   padding-right: 0.1em;
   padding-left: 0.1em;
   padding-bottom: -5px; */
}

a code {
   color: blue;
}

img {
   position: relative;
   bottom: -4px;
}

div.headline {
   font-weight: bold;
   font-size: 110%;
}

div.copyright {
   margin-top: 1em;
   border-top: 1px solid black;
   padding-top: 0.5em;
}

div.iris_headline {
   border-bottom: 1px solid black;
   padding-bottom: 0.3em;
}

.LaTeX {
   font-family: Monospace;
   font-size: 100%;
   border: 1px solid #060;
   color: #060;
}

code.LaTeX {
   background-color: white;
   padding: 0.5em 0.5em 0.5em 2em;
}
</style>
</head>

<body>
<div class="iris_headline">IRIS Toolbox Reference Manual</div>




<h2 id="VAR/group">group</h2>
<div class="headline">Retrieve VAR object from panel VAR for specified group of data</div>

<h4 id="syntax">Syntax</h4>
<pre><code>V = group(V,Grp)</code></pre>
<h4 id="input-arguments">Input arguments</h4>
<ul>
<li><p><code>V</code> [ VAR ] - Panel VAR object estimated on multiple groups of data.</p></li>
<li><p><code>Grp</code> [ char ] - Requested group name; must be one of the names specified when the panel VAR object was constructed using the function <a href="../VAR/VAR.html"><code>VAR</code></a>.</p></li>
</ul>
<h4 id="output-arguments">Output arguments</h4>
<ul>
<li><code>V</code> [ VAR ] - VAR object for the <code>K</code>-th group of data.</li>
</ul>
<h4 id="description">Description</h4>
<h4 id="example">Example</h4>
<p>Create and estimate a panel VAR for three variables, <code>x</code>, <code>y</code>, <code>z</code>, and three countries, <code>US</code>, <code>EU</code>, <code>JA</code>. Then, retrieve a plain VAR for an individual country.</p>
<pre><code>v = VAR({&#39;x&#39;,&#39;y&#39;,&#39;z&#39;},{&#39;US&#39;,&#39;EU&#39;,&#39;JA&#39;});
v = estimate(v,d,range,&#39;fixedEffect=&#39;,true);
vi_us = group(v,&#39;US&#39;);</code></pre>

</body>
<div class="copyright">IRIS Toolbox. Copyright &copy; 2007&#8212;2013 Jaromir Benes.</div>
</html>
